package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TongzhileixingMapper;
import com.ruoyi.system.domain.Tongzhileixing;
import com.ruoyi.system.service.ITongzhileixingService;

/**
 * 通知类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-10
 */
@Service
public class TongzhileixingServiceImpl implements ITongzhileixingService 
{
    @Autowired
    private TongzhileixingMapper tongzhileixingMapper;

    /**
     * 查询通知类型
     * 
     * @param tzlxId 通知类型主键
     * @return 通知类型
     */
    @Override
    public Tongzhileixing selectTongzhileixingByTzlxId(Long tzlxId)
    {
        return tongzhileixingMapper.selectTongzhileixingByTzlxId(tzlxId);
    }

    /**
     * 查询通知类型列表
     * 
     * @param tongzhileixing 通知类型
     * @return 通知类型
     */
    @Override
    public List<Tongzhileixing> selectTongzhileixingList(Tongzhileixing tongzhileixing)
    {
        return tongzhileixingMapper.selectTongzhileixingList(tongzhileixing);
    }

    /**
     * 新增通知类型
     * 
     * @param tongzhileixing 通知类型
     * @return 结果
     */
    @Override
    public int insertTongzhileixing(Tongzhileixing tongzhileixing)
    {
        return tongzhileixingMapper.insertTongzhileixing(tongzhileixing);
    }

    /**
     * 修改通知类型
     * 
     * @param tongzhileixing 通知类型
     * @return 结果
     */
    @Override
    public int updateTongzhileixing(Tongzhileixing tongzhileixing)
    {
        return tongzhileixingMapper.updateTongzhileixing(tongzhileixing);
    }

    /**
     * 批量删除通知类型
     * 
     * @param tzlxIds 需要删除的通知类型主键
     * @return 结果
     */
    @Override
    public int deleteTongzhileixingByTzlxIds(Long[] tzlxIds)
    {
        return tongzhileixingMapper.deleteTongzhileixingByTzlxIds(tzlxIds);
    }

    /**
     * 删除通知类型信息
     * 
     * @param tzlxId 通知类型主键
     * @return 结果
     */
    @Override
    public int deleteTongzhileixingByTzlxId(Long tzlxId)
    {
        return tongzhileixingMapper.deleteTongzhileixingByTzlxId(tzlxId);
    }
}
